package com.wk.springboot.spring.imports;

import com.wk.springboot.spring.bean.Animal;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @User admin
 * @Date 2020/11/20 15:19
 **/

@Configuration
public class AnimalBeanConfig {

    @Bean
    public Animal getAnimal(){
        Animal animal = new Animal();
        animal.setAge(11);
        animal.setName("happy");
        return animal;
    }

}
